package com.lvmama.pangolin.mybatis.mapper.mt;

import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.mt.MTTicketCommodityItem;
import com.lvmama.pangolin.entity.mt.MTTicket_CommodityDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MTTicketCommodityItemsMapper {
	/**  
	* @Title：TCommodityItemsMapper.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年3月6日上午11:07:29  
	*/
	public int insert(MTTicket_CommodityDetail item);
	public void insertSelective(MTTicketCommodityItem item);
	public MTTicketCommodityItem selectById(@Param("commodityId") String commodity_id, @Param("productId") String productId);
	public int update(MTTicket_CommodityDetail item);
	public int updateByProdCommIdAndType(MTTicket_CommodityDetail item);
	public void updateSelective(MTTicketCommodityItem item);
	public List<MTTicketCommodityItem> selectByProdId(@Param("product_id") String product_id);
	public MTTicketCommodityItem selectByProdCommId(@Param("productId") String productId, @Param("commodityId") String commodityId);
	public List<MTTicketCommodityItem> selectByProdComName(@Param("productId") String productId, @Param("commodityName") String commodityName);
	public void updateByProdCommId(@Param("productId") String productId, @Param("commodityId") String commodityId);
	public void deleteLinkByProdCommId(@Param("productId") String productId, @Param("commodityId") String commodityId);
	public void deleteById(@Param("id") String id);
	public List<MTTicketCommodityItem> selectByProdidAndIsLinked(Map<String, String> map);
	public List<MTTicketCommodityItem> selectByCommVO(InputCommodityVO co);
	public List<MTTicketCommodityItem> getActiveCommodity(@Param("productId") String productId);
}
